<?php
// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
$app = JFactory::getApplication();
$return = base64_encode("index.php")
?>

<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="ketnoi_login_form">
    <ul class="pull-right">  
	  	<li>
	  		<a style="cursor:pointer" onclick="$('#ketnoi_login_form').submit();"><i class="icon-off"></i> Logout</a>
	  	</li>
	</ul>
    
    <input type="hidden" name="option" value="com_users" />
	<input type="hidden" name="task" value="user.logout" />
	<input type="hidden" name="return" value="<?php echo $return; ?>" />
	<?php echo JHtml::_('form.token'); ?>
</form>
<?php endif; ?>

